package org.zt.java.dal.config.vo;

import org.zt.java.dal.datasource.DataSourceType;

public class MethodInfo {
	private String className;
	private String methodName;
	private String methodParamType;
	private DataSourceType use;
	private Boolean tx;

	public MethodInfo() {
		super();
	}

	public MethodInfo(String className, String methodName, String methodParamType, DataSourceType use, Boolean tx) {
		super();
		this.className = className;
		this.methodName = methodName;
		this.methodParamType = methodParamType;
		this.use = use;
		this.tx = tx;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	public String getMethodParamType() {
		return methodParamType;
	}

	public void setMethodParamType(String methodParamType) {
		this.methodParamType = methodParamType;
	}

	public DataSourceType getUse() {
		return use;
	}

	public void setUse(DataSourceType use) {
		this.use = use;
	}

	public Boolean getTx() {
		return tx;
	}

	public void setTx(Boolean tx) {
		this.tx = tx;
	}
	
	public String getSimpleMethodName(){
		String simpleClassName = className
				.substring(className.lastIndexOf(".") + 1);

		return simpleClassName + "." + methodName;
	}
}
